package filter;

import javax.servlet.*;
import java.io.IOException;

public class MyFilter2 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        System.out.println("请求正在被第二个过滤器拦截");

        filterChain.doFilter(servletRequest,servletResponse);
//        System.out.println("从servlet或资源返回到第二个过滤器");

    }

    @Override
    public void destroy() {

    }
}
